﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace igflow
{
    class TextObject : GameObject.igGameObject
    {
        public TextObject(Vector3 position, string text, Vector2 size )
        {
            this.name = text;
            this.Position = position;
            Meshes.igTextMesh tMesh = new igflow.Meshes.igTextMesh(new igFont(), size.X, size.Y, text, Color.Black);
            Components.igMeshRenderer rend = new igflow.Components.igMeshRenderer();
            rend.meshes.Add(tMesh);
            //rend.meshes.Add(tmesh2);
            AddComponent(rend);
            World.AddGameObject(this);
        }
    }
}
